package cn.spike.rockcc.feignclient;

import cn.spike.rockcc.dto.CourseEsDto;
import cn.spike.rockcc.fallback.SearchFallbackFactory;
import cn.spike.rockcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search",path = "/search",fallbackFactory = SearchFallbackFactory.class)
public interface SearchFeignClient {

    @PostMapping("/save")
    JSONResult save(@RequestBody CourseEsDto courseEsDto);
}
